Optimal. Leaf size=164 \[ \frac {a^3 x}{c^5}-\frac {8 a^3 \tan (e+f x)}{9 c^5 f (1-\sec (e+f x))^5}+\frac {4 a^3 \tan (e+f x)}{63 c^5 f (1-\sec (e+f x))^4}-\frac {38 a^3 \tan (e+f x)}{105 c^5 f (1-\sec (e+f x))^3}-\frac {181 a^3 \tan (e+f x)}{315 c^5 f (1-\sec (e+f x))^2}-\frac {496 a^3 \tan (e+f x)}{315 c^5 f (1-\sec (e+f x))} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.52, antiderivative size = 164, normalized size of antiderivative = 1.00, number of steps
used = 23, number of rules used = 9, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.346, Rules used = {3988, 3862,
4007, 4004, 3879, 3881, 3882, 3884, 4085} \begin {gather*} -\frac {496 a^3 \tan (e+f x)}{315 c^5 f (1-\sec (e+f x))}-\frac {181 a^3 \tan (e+f x)}{315 c^5 f (1-\sec (e+f x))^2}-\frac {38 a^3 \tan (e+f x)}{105 c^5 f (1-\sec (e+f x))^3}+\frac {4 a^3 \tan (e+f x)}{63 c^5 f (1-\sec (e+f x))^4}-\frac {8 a^3 \tan (e+f x)}{9 c^5 f (1-\sec (e+f x))^5}+\frac {a^3 x}{c^5} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3862
Rule 3879
Rule 3881
Rule 3882
Rule 3884
Rule 3988
Rule 4004
Rule 4007
Rule 4085
Rubi steps
\begin {align*} \int \frac {(a+a \sec (e+f x))^3}{(c-c \sec (e+f x))^5} \, dx &=\frac {\int \left (\frac {a^3}{(1-\sec (e+f x))^5}+\frac {3 a^3 \sec (e+f x)}{(1-\sec (e+f x))^5}+\frac {3 a^3 \sec ^2(e+f x)}{(1-\sec (e+f x))^5}+\frac {a^3 \sec ^3(e+f x)}{(1-\sec (e+f x))^5}\right ) \, dx}{c^5}\\ &=\frac {a^3 \int \frac {1}{(1-\sec (e+f x))^5} \, dx}{c^5}+\frac {a^3 \int \frac {\sec ^3(e+f x)}{(1-\sec (e+f x))^5} \, dx}{c^5}+\frac {\left (3 a^3\right ) \int \frac {\sec (e+f x)}{(1-\sec (e+f x))^5} \, dx}{c^5}+\frac {\left (3 a^3\right ) \int \frac {\sec ^2(e+f x)}{(1-\sec (e+f x))^5} \, dx}{c^5}\\ &=-\frac {8 a^3 \tan (e+f x)}{9 c^5 f (1-\sec (e+f x))^5}-\frac {a^3 \int \frac {-9-4 \sec (e+f x)}{(1-\sec (e+f x))^4} \, dx}{9 c^5}+\frac {a^3 \int \frac {(-5-9 \sec (e+f x)) \sec (e+f x)}{(1-\sec (e+f x))^4} \, dx}{9 c^5}+\frac {\left (4 a^3\right ) \int \frac {\sec (e+f x)}{(1-\sec (e+f x))^4} \, dx}{3 c^5}-\frac {\left (5 a^3\right ) \int \frac {\sec (e+f x)}{(1-\sec (e+f x))^4} \, dx}{3 c^5}\\ &=-\frac {8 a^3 \tan (e+f x)}{9 c^5 f (1-\sec (e+f x))^5}+\frac {4 a^3 \tan (e+f x)}{63 c^5 f (1-\sec (e+f x))^4}+\frac {a^3 \int \frac {63+39 \sec (e+f x)}{(1-\sec (e+f x))^3} \, dx}{63 c^5}+\frac {a^3 \int \frac {\sec (e+f x)}{(1-\sec (e+f x))^3} \, dx}{3 c^5}+\frac {\left (4 a^3\right ) \int \frac {\sec (e+f x)}{(1-\sec (e+f x))^3} \, dx}{7 c^5}-\frac {\left (5 a^3\right ) \int \frac {\sec (e+f x)}{(1-\sec (e+f x))^3} \, dx}{7 c^5}\\ &=-\frac {8 a^3 \tan (e+f x)}{9 c^5 f (1-\sec (e+f x))^5}+\frac {4 a^3 \tan (e+f x)}{63 c^5 f (1-\sec (e+f x))^4}-\frac {38 a^3 \tan (e+f x)}{105 c^5 f (1-\sec (e+f x))^3}-\frac {a^3 \int \frac {-315-204 \sec (e+f x)}{(1-\sec (e+f x))^2} \, dx}{315 c^5}+\frac {\left (2 a^3\right ) \int \frac {\sec (e+f x)}{(1-\sec (e+f x))^2} \, dx}{15 c^5}+\frac {\left (8 a^3\right ) \int \frac {\sec (e+f x)}{(1-\sec (e+f x))^2} \, dx}{35 c^5}-\frac {\left (2 a^3\right ) \int \frac {\sec (e+f x)}{(1-\sec (e+f x))^2} \, dx}{7 c^5}\\ &=-\frac {8 a^3 \tan (e+f x)}{9 c^5 f (1-\sec (e+f x))^5}+\frac {4 a^3 \tan (e+f x)}{63 c^5 f (1-\sec (e+f x))^4}-\frac {38 a^3 \tan (e+f x)}{105 c^5 f (1-\sec (e+f x))^3}-\frac {181 a^3 \tan (e+f x)}{315 c^5 f (1-\sec (e+f x))^2}+\frac {a^3 \int \frac {945+519 \sec (e+f x)}{1-\sec (e+f x)} \, dx}{945 c^5}+\frac {\left (2 a^3\right ) \int \frac {\sec (e+f x)}{1-\sec (e+f x)} \, dx}{45 c^5}+\frac {\left (8 a^3\right ) \int \frac {\sec (e+f x)}{1-\sec (e+f x)} \, dx}{105 c^5}-\frac {\left (2 a^3\right ) \int \frac {\sec (e+f x)}{1-\sec (e+f x)} \, dx}{21 c^5}\\ &=\frac {a^3 x}{c^5}-\frac {8 a^3 \tan (e+f x)}{9 c^5 f (1-\sec (e+f x))^5}+\frac {4 a^3 \tan (e+f x)}{63 c^5 f (1-\sec (e+f x))^4}-\frac {38 a^3 \tan (e+f x)}{105 c^5 f (1-\sec (e+f x))^3}-\frac {181 a^3 \tan (e+f x)}{315 c^5 f (1-\sec (e+f x))^2}-\frac {8 a^3 \tan (e+f x)}{315 c^5 f (1-\sec (e+f x))}+\frac {\left (488 a^3\right ) \int \frac {\sec (e+f x)}{1-\sec (e+f x)} \, dx}{315 c^5}\\ &=\frac {a^3 x}{c^5}-\frac {8 a^3 \tan (e+f x)}{9 c^5 f (1-\sec (e+f x))^5}+\frac {4 a^3 \tan (e+f x)}{63 c^5 f (1-\sec (e+f x))^4}-\frac {38 a^3 \tan (e+f x)}{105 c^5 f (1-\sec (e+f x))^3}-\frac {181 a^3 \tan (e+f x)}{315 c^5 f (1-\sec (e+f x))^2}-\frac {496 a^3 \tan (e+f x)}{315 c^5 f (1-\sec (e+f x))}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.96, size = 283, normalized size = 1.73 \begin {gather*} \frac {a^3 \csc \left (\frac {e}{2}\right ) \csc ^9\left (\frac {1}{2} (e+f x)\right ) \left (39690 f x \cos \left (\frac {f x}{2}\right )-39690 f x \cos \left (e+\frac {f x}{2}\right )-26460 f x \cos \left (e+\frac {3 f x}{2}\right )+26460 f x \cos \left (2 e+\frac {3 f x}{2}\right )+11340 f x \cos \left (2 e+\frac {5 f x}{2}\right )-11340 f x \cos \left (3 e+\frac {5 f x}{2}\right )-2835 f x \cos \left (3 e+\frac {7 f x}{2}\right )+2835 f x \cos \left (4 e+\frac {7 f x}{2}\right )+315 f x \cos \left (4 e+\frac {9 f x}{2}\right )-315 f x \cos \left (5 e+\frac {9 f x}{2}\right )-142002 \sin \left (\frac {f x}{2}\right )-122850 \sin \left (e+\frac {f x}{2}\right )+103278 \sin \left (e+\frac {3 f x}{2}\right )+73290 \sin \left (2 e+\frac {3 f x}{2}\right )-51102 \sin \left (2 e+\frac {5 f x}{2}\right )-24570 \sin \left (3 e+\frac {5 f x}{2}\right )+13878 \sin \left (3 e+\frac {7 f x}{2}\right )+5040 \sin \left (4 e+\frac {7 f x}{2}\right )-2102 \sin \left (4 e+\frac {9 f x}{2}\right )\right )}{161280 c^5 f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.19, size = 90, normalized size = 0.55
method | result | size |
derivativedivides | \(\frac {a^{3} \left (4 \arctan \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )\right )+\frac {1}{9 \tan \left (\frac {f x}{2}+\frac {e}{2}\right )^{9}}-\frac {3}{7 \tan \left (\frac {f x}{2}+\frac {e}{2}\right )^{7}}+\frac {4}{5 \tan \left (\frac {f x}{2}+\frac {e}{2}\right )^{5}}-\frac {4}{3 \tan \left (\frac {f x}{2}+\frac {e}{2}\right )^{3}}+\frac {4}{\tan \left (\frac {f x}{2}+\frac {e}{2}\right )}\right )}{2 f \,c^{5}}\) | \(90\) |
default | \(\frac {a^{3} \left (4 \arctan \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )\right )+\frac {1}{9 \tan \left (\frac {f x}{2}+\frac {e}{2}\right )^{9}}-\frac {3}{7 \tan \left (\frac {f x}{2}+\frac {e}{2}\right )^{7}}+\frac {4}{5 \tan \left (\frac {f x}{2}+\frac {e}{2}\right )^{5}}-\frac {4}{3 \tan \left (\frac {f x}{2}+\frac {e}{2}\right )^{3}}+\frac {4}{\tan \left (\frac {f x}{2}+\frac {e}{2}\right )}\right )}{2 f \,c^{5}}\) | \(90\) |
risch | \(\frac {a^{3} x}{c^{5}}+\frac {2 i a^{3} \left (2520 \,{\mathrm e}^{8 i \left (f x +e \right )}-12285 \,{\mathrm e}^{7 i \left (f x +e \right )}+36645 \,{\mathrm e}^{6 i \left (f x +e \right )}-61425 \,{\mathrm e}^{5 i \left (f x +e \right )}+71001 \,{\mathrm e}^{4 i \left (f x +e \right )}-51639 \,{\mathrm e}^{3 i \left (f x +e \right )}+25551 \,{\mathrm e}^{2 i \left (f x +e \right )}-6939 \,{\mathrm e}^{i \left (f x +e \right )}+1051\right )}{315 f \,c^{5} \left ({\mathrm e}^{i \left (f x +e \right )}-1\right )^{9}}\) | \(125\) |
norman | \(\frac {\frac {a^{3} x \left (\tan ^{9}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{c}+\frac {a^{3} x \left (\tan ^{13}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{c}+\frac {a^{3}}{18 c f}-\frac {41 a^{3} \left (\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{126 c f}+\frac {557 a^{3} \left (\tan ^{4}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{630 c f}-\frac {353 a^{3} \left (\tan ^{6}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{210 c f}+\frac {56 a^{3} \left (\tan ^{8}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{15 c f}-\frac {14 a^{3} \left (\tan ^{10}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{3 c f}+\frac {2 a^{3} \left (\tan ^{12}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{c f}-\frac {2 a^{3} x \left (\tan ^{11}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{c}}{\left (\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )-1\right )^{2} c^{4} \tan \left (\frac {f x}{2}+\frac {e}{2}\right )^{9}}\) | \(233\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 439 vs.
\(2 (154) = 308\).
time = 0.52, size = 439, normalized size = 2.68 \begin {gather*} \frac {a^{3} {\left (\frac {10080 \, \arctan \left (\frac {\sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1}\right )}{c^{5}} - \frac {{\left (\frac {270 \, \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} - \frac {1008 \, \sin \left (f x + e\right )^{4}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{4}} + \frac {2730 \, \sin \left (f x + e\right )^{6}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{6}} - \frac {9765 \, \sin \left (f x + e\right )^{8}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{8}} - 35\right )} {\left (\cos \left (f x + e\right ) + 1\right )}^{9}}{c^{5} \sin \left (f x + e\right )^{9}}\right )} - \frac {3 \, a^{3} {\left (\frac {180 \, \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} - \frac {378 \, \sin \left (f x + e\right )^{4}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{4}} + \frac {420 \, \sin \left (f x + e\right )^{6}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{6}} - \frac {315 \, \sin \left (f x + e\right )^{8}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{8}} - 35\right )} {\left (\cos \left (f x + e\right ) + 1\right )}^{9}}{c^{5} \sin \left (f x + e\right )^{9}} - \frac {15 \, a^{3} {\left (\frac {18 \, \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} - \frac {42 \, \sin \left (f x + e\right )^{6}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{6}} + \frac {63 \, \sin \left (f x + e\right )^{8}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{8}} - 7\right )} {\left (\cos \left (f x + e\right ) + 1\right )}^{9}}{c^{5} \sin \left (f x + e\right )^{9}} - \frac {7 \, a^{3} {\left (\frac {18 \, \sin \left (f x + e\right )^{4}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{4}} - \frac {45 \, \sin \left (f x + e\right )^{8}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{8}} - 5\right )} {\left (\cos \left (f x + e\right ) + 1\right )}^{9}}{c^{5} \sin \left (f x + e\right )^{9}}}{5040 \, f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 3.10, size = 227, normalized size = 1.38 \begin {gather*} \frac {1051 \, a^{3} \cos \left (f x + e\right )^{5} - 1684 \, a^{3} \cos \left (f x + e\right )^{4} + 898 \, a^{3} \cos \left (f x + e\right )^{3} + 1468 \, a^{3} \cos \left (f x + e\right )^{2} - 1669 \, a^{3} \cos \left (f x + e\right ) + 496 \, a^{3} + 315 \, {\left (a^{3} f x \cos \left (f x + e\right )^{4} - 4 \, a^{3} f x \cos \left (f x + e\right )^{3} + 6 \, a^{3} f x \cos \left (f x + e\right )^{2} - 4 \, a^{3} f x \cos \left (f x + e\right ) + a^{3} f x\right )} \sin \left (f x + e\right )}{315 \, {\left (c^{5} f \cos \left (f x + e\right )^{4} - 4 \, c^{5} f \cos \left (f x + e\right )^{3} + 6 \, c^{5} f \cos \left (f x + e\right )^{2} - 4 \, c^{5} f \cos \left (f x + e\right ) + c^{5} f\right )} \sin \left (f x + e\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} - \frac {a^{3} \left (\int \frac {3 \sec {\left (e + f x \right )}}{\sec ^{5}{\left (e + f x \right )} - 5 \sec ^{4}{\left (e + f x \right )} + 10 \sec ^{3}{\left (e + f x \right )} - 10 \sec ^{2}{\left (e + f x \right )} + 5 \sec {\left (e + f x \right )} - 1}\, dx + \int \frac {3 \sec ^{2}{\left (e + f x \right )}}{\sec ^{5}{\left (e + f x \right )} - 5 \sec ^{4}{\left (e + f x \right )} + 10 \sec ^{3}{\left (e + f x \right )} - 10 \sec ^{2}{\left (e + f x \right )} + 5 \sec {\left (e + f x \right )} - 1}\, dx + \int \frac {\sec ^{3}{\left (e + f x \right )}}{\sec ^{5}{\left (e + f x \right )} - 5 \sec ^{4}{\left (e + f x \right )} + 10 \sec ^{3}{\left (e + f x \right )} - 10 \sec ^{2}{\left (e + f x \right )} + 5 \sec {\left (e + f x \right )} - 1}\, dx + \int \frac {1}{\sec ^{5}{\left (e + f x \right )} - 5 \sec ^{4}{\left (e + f x \right )} + 10 \sec ^{3}{\left (e + f x \right )} - 10 \sec ^{2}{\left (e + f x \right )} + 5 \sec {\left (e + f x \right )} - 1}\, dx\right )}{c^{5}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.58, size = 104, normalized size = 0.63 \begin {gather*} \frac {\frac {630 \, {\left (f x + e\right )} a^{3}}{c^{5}} + \frac {1260 \, a^{3} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{8} - 420 \, a^{3} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{6} + 252 \, a^{3} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} - 135 \, a^{3} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} + 35 \, a^{3}}{c^{5} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{9}}}{630 \, f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.46, size = 146, normalized size = 0.89 \begin {gather*} \frac {a^3\,\left (\frac {{\cos \left (\frac {e}{2}+\frac {f\,x}{2}\right )}^9}{18}-\frac {3\,{\cos \left (\frac {e}{2}+\frac {f\,x}{2}\right )}^7\,{\sin \left (\frac {e}{2}+\frac {f\,x}{2}\right )}^2}{14}+\frac {2\,{\cos \left (\frac {e}{2}+\frac {f\,x}{2}\right )}^5\,{\sin \left (\frac {e}{2}+\frac {f\,x}{2}\right )}^4}{5}-\frac {2\,{\cos \left (\frac {e}{2}+\frac {f\,x}{2}\right )}^3\,{\sin \left (\frac {e}{2}+\frac {f\,x}{2}\right )}^6}{3}+2\,\cos \left (\frac {e}{2}+\frac {f\,x}{2}\right )\,{\sin \left (\frac {e}{2}+\frac {f\,x}{2}\right )}^8+\left (e+f\,x\right )\,{\sin \left (\frac {e}{2}+\frac {f\,x}{2}\right )}^9\right )}{c^5\,f\,{\sin \left (\frac {e}{2}+\frac {f\,x}{2}\right )}^9} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________